package com.jctrip.hotel.source.client;

import java.util.List;
import java.util.Map;

import com.jctrip.hotel.source.model.elong.OfflineFliggyRp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import com.jctrip.hotel.source.model.hworld.HworldCallBackRequestBody;

/**
 * @Author henry
 * @Date 2023/7/4 13:20
 * @Description
 */
@FeignClient(name = "HworldCallBackClient",url = "${feign.url.hworld.callback}")
@RequestMapping(headers = {"accept=application/json", "Content-Type=application/json;charset=UTF-8"})
public interface HworldCallBackClient {

    @PostMapping("/feizhu/external/close")
    Map callFezihuServer(@RequestBody HworldCallBackRequestBody requestBody);

    @PostMapping("/jctrip/hotel/hworld/callback")
    Map callOldSysServer(@RequestBody HworldCallBackRequestBody requestBody);

    @PostMapping("/feizhu/external/offLineRp")
    String offLineRp(@RequestBody OfflineFliggyRp param);

    @GetMapping("/feizhu/info/getHotspotHotels")
    List<String> getHotspotHotels();

    @GetMapping("/feizhu/external/sendGoods")
    String sendGoods(@RequestParam String bookId);
}
